package shooter.models;

import java.awt.image.BufferedImage;

import shooter.Hauptfenster;
import shooter.Images;

/**
 * The shot of the game.
 * 
 * @author Michail Tausch
 */
public class Shot extends Sprite {
	
	/**
	 * The constructor.
	 * @param id
	 * @param x
	 * @param y
	 */
	public Shot(int id, double x, double y) {
		super(id, x, y);
		dx = 0.0;
		dy = 0.0;
	}
	
	/**
	 * Checks whether the shot collidates with an other object.
	 */
	@Override
	public void collidedWith(Sprite sprite) {
	}
	
	/**
	 * Returns the image of the shot.
	 */
	@Override
	public BufferedImage getImage() {
		if(!Hauptfenster.schneeballMode){
			return Images.shot;
		}else {
			return Images.schnee;
		}		
	}	
}
